﻿namespace Sidvall.Data
{
	public class AcceptChangesSettings
	{
		#region Public Members

		public Sidvall.Data.DataRowContextOption DataRowContextOption { get; set; }

		#region NewSettings

		public static AcceptChangesSettings NewSettings(DataRowContextOption dataRowContextOption)
		{
			return new AcceptChangesSettings(dataRowContextOption);
		}

		#endregion

		#endregion
		#region Constructors

		public AcceptChangesSettings()
			: this(DataRowContextOption.StateAndKey)
		{
		}
		public AcceptChangesSettings(DataRowContextOption dataRowContextOption)
		{
			this.DataRowContextOption = dataRowContextOption;
		}

		#endregion
	}
}
